import {EntityId, PageQueryParams} from "kf-web-library";

export interface PermPageQueryParams extends Partial<PageQueryParams> {
  searchText?: string;
}

export interface Perm {
  id: EntityId;
  code: string;
  name: string;
  createTime?: string;
  modifyTime?: string;
  description?: string;
  tag: string;
}

export interface Perm_Create {
  code: string;
  description: string;
  name: string;
}

export interface Perm_Modify extends Perm_Create {
  id: EntityId;
}

export interface Perm_Patch extends Partial<Perm_Modify> {
  id: EntityId;
}

